/**
 * Copyright (C) T-Systems International, 2013-2014
 * <p/>
 * The copyright of the computer program herein is the property of
 * T-Systems International. The program may be used and/or copied
 * only with the written permission of T-Systems International or in
 * accordance with the terms and conditions stipulated in the
 * agreement/contract under which the program has been supplied.
 * <p/>
 * $Author: kuzin43 $
 * $Date: 2014-10-16 13:27:35 +0000 (Thu, 16 Oct 2014) $
 * $Rev: 84 $
 */
package com.tsystems.bsipp.dm.persistence.model;

import javax.persistence.*;

import java.util.List;

import static com.tsystems.bsipp.dm.persistence.model.ModelConstants.STRING_LENGTH_2;

@Entity
public class KontesRegion extends AbstractEntity {

    @Column(length = STRING_LENGTH_2)
    private String kontesRegionNr;

    @OneToMany(mappedBy = "kontesRegion", cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true)
    private List<ConnectionArea> connectionArea;

    public List<ConnectionArea> getConnectionArea() {
        return connectionArea;
    }

    public void setConnectionArea(List<ConnectionArea> connectionArea) {
        this.connectionArea = connectionArea;
    }

    public String getKontesRegionNr() {
        return kontesRegionNr;
    }

    public void setKontesRegionNr(String kontesRegionNr) {
        this.kontesRegionNr = kontesRegionNr;
    }
}
